package com.java.base.exercise.designmode.responsibilitychain;

/**
 * @Author RenPu
 * @Date 2022/11/12 20:11
 * @Version 1.0
 * @Description: 观察者1
 **/
public class ConHandler1 extends Handler {

    public ConHandler1(Handler success) {
        super(success);
    }

    @Override
    protected void handlerRequest(Reque reque) {
        if(reque.getRequeType()==RequeType.TYPE1){
            System.out.println(reque.getName()+" this due with ConHandler1 ==111111111============");
            return;
        }
        if(success!=null){
           success.handlerRequest(reque);
        }
    }
}
